package com.lqq.designPattern.design_principle.接口隔离原则;

//Lqq安全锁，有防盗，防水，防火功能
public class LqqSafetyDoor implements AntiTheft, Fireproof, Waterproof{
    private String name = "Lqq安全锁";

    public String getName() {
        return name;
    }

    @Override
    public void antiTheft() {
        System.out.println("防盗");
    }

    @Override
    public void fireproof() {
        System.out.println("防火");
    }

    @Override
    public void waterproof() {
        System.out.println("防水");
    }
}
